package store.aixx.security.ch3.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import store.aixx.security.ch3.domain.dto.UserDTO;

import javax.validation.Valid;

/**
 * @author yukai
 * @since 2021年12月04日 23:11
 */
@RequestMapping("/authorize")
@RestController
public class AuthorizeController {

    @PostMapping("/register")
    public UserDTO register(@Valid @RequestBody UserDTO userDTO){
        return userDTO;
    }
}
